package gitee.com.simonzhaojia;

import gitee.com.simonzhaojia.exception.GetImageUrlFailedException;
import gitee.com.simonzhaojia.service.DownloadBingBGImageService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.naming.Context;
import java.io.IOException;


/**
 * 下载bing的背景图片到计算机的指定路径
 *
 * @author simon zhao
 */
@SpringBootApplication
public class DownloadBingBackgroundImage {

  /**
   * 执行下载任务
   *
   * @param args
   * @throws IOException
   */
  public static void main(String[] args) throws IOException, GetImageUrlFailedException {
    SpringApplication.run(DownloadBingBGImageService.class, args);
  }
}
